const Router = require('koa-router');
const UserController = require('../controller/UserController');

const router = new Router({ prefix: '/user' });

router.post('/', UserController.createUser);
router.get('/', UserController.getUsers);
router.get('/:id', UserController.getUserById);
router.put('/:id', UserController.updateUser);
router.delete('/:id', UserController.deleteUser);

module.exports = router;